package me.goldze.mvvmhabit.utils.constant;

import android.os.Build;
import android.os.Environment;

public class Constants {
    public static String DEFAULT_BASE_URL = "http://119.23.70.224:1257/";

    public static final String TOKEN_CAMERA = "MAINACTIVITY_2_GETINCAR";
    public static final String TOKEN_ADD_BOOKS = "MAINACTIVITY_2_ADD_KEYWORDS";
    public static final String TOKEN_DIALOG_2_FIRST_CHECK = "首书检测弹窗修改首书";
    public static final String TOKEN_REGISTER_AGAIN = "弹窗消失，首书检测重新订阅消息";
    /**
     * 领域，用于url切换
     */
    public static String DOMAIN = "DOMAIN";

    public static final int[] DEFAULT_POWERMETER = {0, 1, 2, 3, 4, 5, 6,
            7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23,
            24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36};
    public static final String KEY_CLEAN = "清除缓存";
    private static final String BASE_PATH = Build.VERSION.SDK_INT==Build.VERSION_CODES.M?Environment.getExternalStorageDirectory().getAbsolutePath()+"/Download": "/storage/self/primary/Download";

    public static class LOG {
        public static final String LOG_PATH = BASE_PATH + "/日志";
        /*主业务界面*/
        public static final String LOG_NAME_HTTP = "/网络请求.txt";
        public static final String LOG_NAME_LOCAL = "/离线请求.txt";
        public static final String LOG_NAME_ANALYZE = "/解析异常.txt";
        public static final String LOG_DEVICE = "/设备链接.txt";
        public static final String LOG_TEMP = "/临时文件.txt";
        public static final String LOG_CRASH = "/crash.txt";
        public static final String LOG_LOCAL = LOG_PATH + "/本地存储.log";
        public static final String LOG_ERROR = LOG_PATH + "/其他异常.log";
    }

    public static class EXPORT {
        public static final String EXPORT_PATH = BASE_PATH + "/导出";
        public static String[] EXPORT_OFFLINE_COLLECTION_BOOK = {"Tid", "EPC", "BarCode"};
        public static String[] EXPORT_TITLE_BOOK = {"Tid", "图书编码", "图书名称", "索书号", "架位号", "架位名", "Remark"};
        public static String[] EXPORT_TITLE_SHELF = {"Tid", "图书编码", "图书名称", "索书号", "架位号", "架位名", "Remark"};
        public static String[] EXPORT_TITLE_SHELF_BOOK = {"Tid", "图书编码", "图书名称", "索书号", "架位号", "架位名", "Remark"};

        public static final String EXCEL_IMPORT = BASE_PATH + "/导入";
        public static final String EXCEL_TEMPLATE = BASE_PATH + "/模板";
    }

    public static class IMPORT {
        public static final String IMPORT_PATH = BASE_PATH;
        public static final String IMPORT_SEARCH_ADD_NAME = "图书查找.xls";

    }

    public static final String[] CACHE_PATHS = {EXPORT.EXPORT_PATH, LOG.LOG_PATH};



    public static int[] INVENGO_SHELF_V1 = {35, 79, 4, 6, 6, 8, 4, 16};
    public static int[] INVENGO_SHELF_V2 = {35, 75, 4, 6, 6, 10, 10, 4};

}
